package com.lhy.admin.util;

import java.util.Collection;
import java.util.stream.Collectors;

public class CollectionUtil {

    public static String toString(Collection collection){
        return collection.stream()
                .map(o -> o.toString())
                .collect(Collectors.joining(",","[","]")).toString();
    }
}
